Matthias Clasen [Mon, 26 Feb 2007 14:56:11 +0000 (14:56 +0000)]
Make folder selection for print-to-file work
svn path=/trunk/; revision=17354
Chris Wilson [Mon, 26 Feb 2007 14:09:21 +0000 (14:09 +0000)]
Bug 409101 – invalid read to gtkicontheme.c insert_theme(), might cause
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 409101 – invalid read to gtkicontheme.c insert_theme(), might cause gnome-panel crash
* gtk/gtkicontheme.c: (scan_directory):
Reorder the replacement of the shared base_name key, so that we
avoid dereferencing the string in the icon_theme->all_icon
hash table after freeing it from the dir->icons hash table.
svn path=/trunk/; revision=17353
Tor Lillqvist [Mon, 26 Feb 2007 13:48:01 +0000 (13:48 +0000)]
Add comment clarifying that "icon name" here is not related to the
2007-02-26 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon_name): Add
comment clarifying that "icon name" here is not related to the
freedesktop.org icon naming stuff.
svn path=/trunk/; revision=17351
Ilkka Tuohela [Sun, 25 Feb 2007 16:13:39 +0000 (16:13 +0000)]
Updated Finnish translation
svn path=/trunk/; revision=17350
Dom Lachowicz [Fri, 23 Feb 2007 16:30:05 +0000 (16:30 +0000)]
Bug 411118 - bad bevel for progress bar on windows classic. Match from
2007-02-23 Dom Lachowicz <domlachowicz@gmail.com>
* modules/engines/ms-windows/msw_style.c: Bug 411118 - bad bevel for
progress bar on windows classic. Match from Mathias Hasselmann.
svn path=/trunk/; revision=17344
Gintautas Miliauskas [Wed, 21 Feb 2007 23:52:31 +0000 (23:52 +0000)]
Updated Lithuanian translation.
2007-02-22 Gintautas Miliauskas <gintas@akl.lt>
* lt.po: Updated Lithuanian translation.
svn path=/trunk/; revision=17341
Maxim Dziumanenko [Wed, 21 Feb 2007 09:24:42 +0000 (09:24 +0000)]
Update Ukrainian translation.
2007-02-21 Maxim Dziumanenko <dziumanenko@gmail.com>
* Update Ukrainian translation.
svn path=/trunk/; revision=17340
Hendrik Richter [Tue, 20 Feb 2007 14:36:39 +0000 (14:36 +0000)]
Updated German translation, fix #410019.
2007-02-20 Hendrik Richter <hendrikr@gnome.org>
* de.po: Updated German translation, fix #410019.
svn path=/trunk/; revision=17339
Vladimer Sichinava [Mon, 19 Feb 2007 02:49:11 +0000 (02:49 +0000)]
Updated Georgian translation
svn path=/trunk/; revision=17333
Tor Lillqvist [Mon, 19 Feb 2007 00:32:32 +0000 (00:32 +0000)]
Remove. (gdk_device_get_type): Drop class init function. The X11 version
2007-02-19 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkinput.c
(gdk_device_finalize, gdk_device_class_init): Remove.
(gdk_device_get_type): Drop class init function. The X11 version
doesn't have one either.
(gdk_devices_list): Call gdk_display_list_devices() on _gdk_display.
(gdk_display_list_devices): Check that the argument is
_gdk_display.
* gdk/win32/gdkinput-win32.h (GdkAxisInfo, GdkDevicePrivate):
Cleanup: remove unused fields.
* gdk/win32/gdkinput-win32.c: Corresponding changes. Fix function
names in a few debugging printouts.
svn path=/trunk/; revision=17332
Matthias Clasen [Sun, 18 Feb 2007 16:24:13 +0000 (16:24 +0000)]
Ignore invisible text when going to end of the previous line. (#382565)
2007-02-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually):
Ignore invisible text when going to end of the previous line.
(#382565)
svn path=/trunk/; revision=17328
Amanpreet Singh Alam [Sun, 18 Feb 2007 15:39:01 +0000 (15:39 +0000)]
updating for Punjabi by AP S Alam
svn path=/trunk/; revision=17326
Richard Hult [Sun, 18 Feb 2007 11:04:06 +0000 (11:04 +0000)]
Setup release pools to plug two leaks, patch from Erik van Pienbroek,
2007-02-18 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_quartz_process_all_updates),
(_gdk_windowing_window_destroy): Setup release pools to plug two leaks,
patch from Erik van Pienbroek, fixes bug #396649.
svn path=/trunk/; revision=17325
Richard Hult [Sun, 18 Feb 2007 10:56:13 +0000 (10:56 +0000)]
Add stub for gdk_display_add_client_message_filter, patch from Taybin
2007-02-18 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c: Add stub for
gdk_display_add_client_message_filter, patch from Taybin Rutkin. Fixes
bug #405870.
* gdk/quartz/gdkprivate-quartz.h: Add prototypes to fix build warnings.
svn path=/trunk/; revision=17324
Richard Hult [Sun, 18 Feb 2007 10:26:49 +0000 (10:26 +0000)]
Import AppKit.h instead of Quartz.h. Don't use userSpaceScaleFactor for
2007-02-18 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzView.h:
* gdk/quartz/GdkQuartzWindow.h:
* gdk/quartz/gdkquartz.h: Import AppKit.h instead of Quartz.h.
* gdk/quartz/gdkscreen-quartz.c: (get_mm_from_pixels): Don't use
userSpaceScaleFactor for 10.3. Those changes bring us closer to working
on panther, patch from Mathias Hasselmann.
* gdk/quartz/gdkeventloop-quartz.c: Add includes to fix build warnings.
svn path=/trunk/; revision=17323
Alexander Shopov [Sat, 17 Feb 2007 20:52:32 +0000 (20:52 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2007-02-17 Alexander Shopov <ash@contact.bg>
* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>
svn path=/trunk/; revision=17321
Alexander Shopov [Sat, 17 Feb 2007 20:51:02 +0000 (20:51 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2007-02-17 Alexander Shopov <ash@contact.bg>
* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>
svn path=/trunk/; revision=17320
Behdad Esfahbod [Fri, 16 Feb 2007 22:12:42 +0000 (22:12 +0000)]
Use PANGO_PIXELS instead of division. (#334617)
2007-02-16 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (gdk_pango_layout_get_clip_region): Use PANGO_PIXELS
instead of division. (#334617)
svn path=/trunk/; revision=17317
Kristian Rietveld [Fri, 16 Feb 2007 21:35:31 +0000 (21:35 +0000)]
add cursor_offset field.
2007-02-16 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeprivate.h: add cursor_offset field.
* gtk/gtktreeview.c (gtk_tree_view_init),
(gtk_tree_view_move_cursor_page_up_down): fix off by one error
in page up/down handling by memorizing the offset into the cursor
row. (Fixes #399809, reported by Bruce Bowler).
svn path=/trunk/; revision=17316
Kristian Rietveld [Fri, 16 Feb 2007 21:24:54 +0000 (21:24 +0000)]
send a focus-in event to the tree view after hiding the search dialog.
2007-02-16 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): send
a focus-in event to the tree view after hiding the search dialog.
(#356515, Rich Burridge, Peter Parente).
svn path=/trunk/; revision=17314
Kristian Rietveld [Fri, 16 Feb 2007 20:10:48 +0000 (20:10 +0000)]
also handle keyboard tooltips. (#408325, Matthias Clasen).
2007-02-16 Kristian Rietveld <kris@imendio.com>
* tests/testtooltips.c (query_tooltip_text_view_cb): also handle
keyboard tooltips. (#408325, Matthias Clasen).
svn path=/trunk/; revision=17313
Xan Lopez [Fri, 16 Feb 2007 16:00:19 +0000 (16:00 +0000)]
Cleanup the logic in expose event handler. Reviewed by Matthias Clasen,
* gtk/gtkcombobox.c (gtk_combo_box_expose_event): Cleanup the logic
in expose event handler. Reviewed by Matthias Clasen, #406112
svn path=/trunk/; revision=17312
Maxim V. Dziumanenko [Fri, 16 Feb 2007 11:54:27 +0000 (11:54 +0000)]
Maxim Dziumanenko <dziumanenko@gmail.com>
* Updated Ukrainian
svn path=/trunk/; revision=17310
Matthias Clasen [Fri, 16 Feb 2007 06:09:02 +0000 (06:09 +0000)]
Fix a small leak
svn path=/trunk/; revision=17308
Matthias Clasen [Fri, 16 Feb 2007 05:32:59 +0000 (05:32 +0000)]
Fix a leak in an error path
svn path=/trunk/; revision=17306
Matthias Clasen [Fri, 16 Feb 2007 04:01:50 +0000 (04:01 +0000)]
Be more careful when checking for ButtonRelease events that end implicit
2007-02-15 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdmain-x11.c (_gdk_xgrab_check_button_event): Be more
careful when checking for ButtonRelease events that end implicit
grabs. (#386618, Christof Krüger)
svn path=/trunk/; revision=17304
Matthias Clasen [Thu, 15 Feb 2007 20:38:21 +0000 (20:38 +0000)]
Free the lines even if there are no views. (#408018, Albert Huang)
2007-02-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_delete): Free the lines
even if there are no views. (#408018, Albert Huang)
svn path=/trunk/; revision=17302
Cody Russell [Thu, 15 Feb 2007 18:46:51 +0000 (18:46 +0000)]
Fix small mistake in my ChangeLog
svn path=/trunk/; revision=17301
Cody Russell [Thu, 15 Feb 2007 18:28:55 +0000 (18:28 +0000)]
Fix Win32 resize events and flickering
svn path=/trunk/; revision=17299
Matthias Clasen [Thu, 15 Feb 2007 16:56:11 +0000 (16:56 +0000)]
Handle symlinked .icon files intelligently; also avoid storing duplicate
2007-02-15 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c: Handle symlinked .icon files
intelligently; also avoid storing duplicate strings.
svn path=/trunk/; revision=17298
Michael Natterer [Thu, 15 Feb 2007 08:53:55 +0000 (08:53 +0000)]
remove two antique function typedefs that are probably obsolete for ages.
2007-02-15 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenushell.c: remove two antique function typedefs that
are probably obsolete for ages.
svn path=/trunk/; revision=17297
Stefan Kost [Wed, 14 Feb 2007 21:54:29 +0000 (21:54 +0000)]
reviewed by: Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf/Makefile.am:
* gdk/Makefile.am:
* gtk/Makefile.am: use installation prefixes of dependent libs to
crossreference docs (#407146).
svn path=/trunk/; revision=17295
Stefan Kost [Wed, 14 Feb 2007 21:54:09 +0000 (21:54 +0000)]
reviewed by: Matthias Clasen <mclasen@redhat.com>
* configure.in: determine installation prefixes of dependent libs to
crossreference docs (#407146).
svn path=/trunk/; revision=17294
Kristian Rietveld [Wed, 14 Feb 2007 20:38:02 +0000 (20:38 +0000)]
check return value of gtk_widget_translate_coordinates() so we cannot end
2007-02-14 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (child_location_foreach): check return value
of gtk_widget_translate_coordinates() so we cannot end up
using uninitialized x, y values. (#407863, patch from Carlos
Garnacho).
svn path=/trunk/; revision=17293
Kristian Rietveld [Wed, 14 Feb 2007 12:13:48 +0000 (12:13 +0000)]
use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window position
2007-02-14 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window
position instead of a hardcoded value. (Taken from maemo-gtk).
svn path=/trunk/; revision=17292
Michael Natterer [Wed, 14 Feb 2007 11:52:27 +0000 (11:52 +0000)]
don't forget to set the state of the synthesized GDK_ENTER_NOTIFY event.
2007-02-14 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_motion_notify): don't forget to set the
state of the synthesized GDK_ENTER_NOTIFY event. Fix taken from
maemo-gtk.
svn path=/trunk/; revision=17291
Kristian Rietveld [Tue, 13 Feb 2007 12:41:36 +0000 (12:41 +0000)]
stop any pending tooltip timeout. (Fixes #406110, Carlos Garnacho).
2007-02-13 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (gtk_tooltip_hide_tooltip): stop any
pending tooltip timeout. (Fixes #406110, Carlos Garnacho).
svn path=/trunk/; revision=17290
Ilkka Tuohela [Tue, 13 Feb 2007 05:18:47 +0000 (05:18 +0000)]
Updated Finnish translation
svn path=/trunk/; revision=17289
Emmanuele Bassi [Sat, 10 Feb 2007 12:14:39 +0000 (12:14 +0000)]
Fix the english of the comment; remove some type checking; use better
2007-02-10 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c: Fix the english of the comment;
remove some type checking; use better variable naming for the
internal menu item markers.
svn path=/trunk/; revision=17284
Stéphane Raimbault [Sat, 10 Feb 2007 09:34:38 +0000 (09:34 +0000)]
Updated French translation by Jonathan Ernst and Stéphane Raimbault
2007-02-09 Stéphane Raimbault <stephane.raimbault@gmail.com>
* fr.po: Updated French translation by Jonathan Ernst and Stéphane
Raimbault (added bug report #406160).
svn path=/trunk/; revision=17283
Emmanuele Bassi [Fri, 9 Feb 2007 14:24:19 +0000 (14:24 +0000)]
Add support for both prepending and appending custom menu items.
2007-02-09 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c: Add support for both prepending
and appending custom menu items.
(gtk_recent_chooser_menu_constructor): Add a placeholder menu
item for the empty menu case, and for giving us a starting
point for the recent items populating process.
(gtk_recent_chooser_menu_insert_item),
(gtk_recent_chooser_menu_dispose_items): Insert an item at
the position following the placeholder (and find that position
if needed).
(idle_populate_func), (idle_populate_clean_up): Show the
placeholder menu item, instead of creating one each time.
(gtk_recent_chooser_menu_populate): Kill some indirections
and hide the placeholder before populating the menu.
(set_recent_manager): Remember to remove the idle population
source if the manager changes.
* tests/testrecentchoosermenu.c: Test the appending and
prepending of the menu items to the recent chooser menu
widget.
svn path=/trunk/; revision=17281
David Lodge [Fri, 9 Feb 2007 11:24:44 +0000 (11:24 +0000)]
Updated (British) English translation
svn path=/trunk/; revision=17279
Emmanuele Bassi [Thu, 8 Feb 2007 14:22:20 +0000 (14:22 +0000)]
Keep count of the displayed items to build the menu items mnemonic instead
2007-02-08 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c (idle_populate_func): Keep count
of the displayed items to build the menu items mnemonic instead
of the overall item count. (#377164)
(idle_populate_clean_up): Append a menu item if all the items
got filtered in the idle populate function. (#405696)
svn path=/trunk/; revision=17277
Tim Janik [Thu, 8 Feb 2007 12:11:02 +0000 (12:11 +0000)]
applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to
Thu Feb 8 13:07:08 2007 Tim Janik <timj@imendio.com>
* applied patch from Xan Lopez which adds GTK_BUTTONBOX_CENTER to
GtkButtonBox (bug #336159).
* gtk/gtkenums.h:
* gtk/gtkvbbox.c, gtk/gtkhbbox.c, gtk/gtkbbox.c:
support GTK_BUTTONBOX_CENTER.
* tests/testbbox.c: new button box test, which allows testing of
the various button box properties.
* tests/testgtk.c: added GTK_BUTTONBOX_CENTER. to button box test.
svn path=/trunk/; revision=17276
Cody Russell [Wed, 7 Feb 2007 20:33:46 +0000 (20:33 +0000)]
Add gdk_event_request_motions
2007-02-07 Cody Russell <bratsche@gnome.org>
* gdk/gdk.symbols: Add gdk_event_request_motions
svn path=/trunk/; revision=17275
Tim Janik [Wed, 7 Feb 2007 18:09:35 +0000 (18:09 +0000)]
fixed motion request condition which was wrongly ported with my last
Wed Feb 7 19:03:28 2007 Tim Janik <timj@gtk.org>
* gtk/gtkentry.c (gtk_entry_motion_notify): fixed motion request
condition which was wrongly ported with my last commit.
svn path=/trunk/; revision=17274
Chris Wilson [Wed, 7 Feb 2007 14:47:36 +0000 (14:47 +0000)]
Set the GError if the image is zero length. (#405327)
2007-02-07 Chris Wilson <chris@chris-wilson.co.uk>
* io-jpeg.c: (gdk_pixbuf__jpeg_image_load),
(gdk_pixbuf__jpeg_image_load_increment): Set the GError
if the image is zero length. (#405327)
svn path=/trunk/; revision=17272
Tim Janik [Tue, 6 Feb 2007 15:02:59 +0000 (15:02 +0000)]
fixed typo
svn path=/trunk/; revision=17270
Tim Janik [Tue, 6 Feb 2007 14:53:35 +0000 (14:53 +0000)]
call gdk_event_request_motions() for new motion events after receiving
Tue Feb 6 15:53:59 2007 Tim Janik <timj@imendio.com>
* gtk/gtktextview.c (gtk_text_view_motion_event):
* gtk/gtkspinbutton.c (gtk_spin_button_motion_notify):
* gtk/gtkaboutdialog.c (credits_motion_notify_event):
* gtk/gtkhruler.c (gtk_hruler_motion_notify):
* gtk/gtkvruler.c (gtk_vruler_motion_notify):
* gtk/gtkentry.c (gtk_entry_motion_notify):
* gtk/gtktooltip.c (_gtk_tooltip_handle_event):
* gtk/gtkhsv.c (gtk_hsv_motion): call gdk_event_request_motions()
for new motion events after receiving motion hints.
* gdk/gdkevents.[hc]: added gdk_event_request_motions().
svn path=/trunk/; revision=17269
Matthias Clasen [Tue, 6 Feb 2007 13:56:06 +0000 (13:56 +0000)]
Protect against stop_load begin broken. (#403255, Lucas Mazzardo Veloso)
2007-02-06 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Protect
against stop_load begin broken. (#403255, Lucas Mazzardo Veloso)
svn path=/trunk/; revision=17267
Kristian Rietveld [Tue, 6 Feb 2007 13:13:19 +0000 (13:13 +0000)]
remove unused get of has_tooltip.
2007-02-06 Kristian Rietveld <kris@imendio.com>
* gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
remove unused get of has_tooltip.
* tests/testtooltips.c (query_tooltip_tree_view_cb): use the
portable g_snprintf instead of snprintf.
svn path=/trunk/; revision=17266
Michael Natterer [Tue, 6 Feb 2007 12:11:33 +0000 (12:11 +0000)]
chain up.
2007-02-06 Michael Natterer <mitch@imendio.com>
* gtk/gtktooltip.c (gtk_tooltip_finalize): chain up.
(gtk_tooltip_show_tooltip): move variables and code to local
scope. Fixes warnings about maybe uninitialized variables.
svn path=/trunk/; revision=17265
Kristian Rietveld [Tue, 6 Feb 2007 10:25:21 +0000 (10:25 +0000)]
New tooltips API.
2007-02-06 Kristian Rietveld <kris@imendio.com>
New tooltips API.
* gtk/Makefile.am
* gtk/gtk.h
* gtk/gtk.symbols: build system foo.
* gtk/gtkmain.c (gtk_main_do_event): call tooltip event handler
hook for appropriate events.
* gtk/gtkmarshalers.list: add BOOLEAN:INT,INT,BOOLEAN,OBJECT.
* gtk/gtkrc.c: add style for gtk-tooltip.
* gtk/gtksettings.c (gtk_settings_class_init): make the
different tooltip timeouts configurable.
* gtk/gtkwidget.[ch]: add new properties, signals, make sure
tooltips are hidden on unmap, destroy, update window event
mask on realize, hook into focus change and show help
handlers.
* gtk/gtkwindow.h: move GtkWindow typdef to gtkwidget.h ...
* gtk/gtktooltip.[ch]: new files.
* tests/Makefile.am
* tests/testtooltips.c: add test application.
svn path=/trunk/; revision=17264
Dom Lachowicz [Mon, 5 Feb 2007 14:30:06 +0000 (14:30 +0000)]
Fix bug 404506, caused by prematurely releasing a DC. By Hiroyuki Yamamoto
2007-02-05 Dom Lachowicz <domlachowicz@gmail.com>
* modules/engines/ms-windows/msw_style.c: Fix bug 404506, caused
by prematurely releasing a DC. By Hiroyuki Yamamoto
* modules/engines/ms-windows/msw_style.c: Fix bug 403470 - leaking
pixbufs when drawing rotated tabs. By Daniel Atallah
svn path=/trunk/; revision=17263
Michael Natterer [Mon, 5 Feb 2007 14:11:39 +0000 (14:11 +0000)]
add new boolean settings gtk-enable-accels and gtk-enable-mnemonics which
2007-02-05 Michael Natterer <mitch@imendio.com>
* gtk/gtksettings.c: add new boolean settings gtk-enable-accels
and gtk-enable-mnemonics which enable/disable accelerators and
mnemonics (bug #72375, based on a patch from Tommi Komulainen).
* gtk/gtkwindow.c (gtk_window_activate_key)
* gtk/gtkmenushell.c (gtk_menu_shell_key_press): don't invoke them
if the resp. setting is FALSE.
* gtk/gtkaccellabel.c (gtk_accel_label_refetch)
* gtk/gtklabel.c (gtk_label_set_pattern_internal): don't display
them if the setting is FALSE.
* gtk/gtklabel.c: added signal connection to the screen's settings
object and traverse all widgets on the screen when the setting
changes. It's slightly ugly to also update GtkAccelLabels here,
but less ugly than connecting and traversing all widgets twice.
svn path=/trunk/; revision=17262
Michael Natterer [Mon, 5 Feb 2007 10:36:27 +0000 (10:36 +0000)]
changed values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
2007-02-05 Michael Natterer <mitch@imendio.com>
* gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): changed
values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
ansi C enum value limits. Fixes bug #46757.
svn path=/trunk/; revision=17260
Soren Sandmann [Sun, 4 Feb 2007 01:28:38 +0000 (01:28 +0000)]
Remove these files since GSequence has been moved into GLib.
2007-02-03 Soren Sandmann <sandmann@daimi.au.dk>
* gtk/gtksequence.[ch]: Remove these files since GSequence has
been moved into GLib.
* gtk/gtkliststore.c: Port to GSequence instead of GtkSequence.
* configure.in: Require glib-2.13.0
svn path=/trunk/; revision=17259
Tor Lillqvist [Sun, 4 Feb 2007 00:32:52 +0000 (00:32 +0000)]
Nitpick. Define BITMAPV5HEADERS also for w32api < 3.0, although I have
no idea whether gdk/win32 would build with such an old beast.
svn path=/trunk/; revision=17258
Tor Lillqvist [Sun, 4 Feb 2007 00:19:53 +0000 (00:19 +0000)]
Don't define BITMAPV5HEADER on mingw with w32api >= 3.8, which has it in
2007-02-04 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkcursor-win32.c: Don't define BITMAPV5HEADER on
mingw with w32api >= 3.8, which has it in wingdi.h. (#403896)
svn path=/trunk/; revision=17256
Kristian Rietveld [Fri, 2 Feb 2007 20:37:02 +0000 (20:37 +0000)]
remove unused style_get of vertical-separator. (#403165, Chris Wilson).
2007-02-02 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_row_changed): remove unused
style_get of vertical-separator. (#403165, Chris Wilson).
svn path=/trunk/; revision=17252
Christian Persch [Fri, 2 Feb 2007 19:07:39 +0000 (19:07 +0000)]
Use a simple key file instead of a markup file. Bug #399592.
2007-02-02 Christian Persch <chpe@svn.gnome.org>
* gtk/gtkfilechoosersettings.c: (get_config_filename),
(ensure_settings_read), (_gtk_file_chooser_settings_init),
(_gtk_file_chooser_settings_set_show_hidden),
(_gtk_file_chooser_settings_set_expand_folders),
(_gtk_file_chooser_settings_save): Use a simple key file instead of a
markup file. Bug #399592.
svn path=/trunk/; revision=17251
Mariano Suárez-Alvarez [Fri, 2 Feb 2007 03:50:46 +0000 (03:50 +0000)]
be a little more helpful with the docs on GtkCellRendererText:alignment.
2007-02-02 Mariano Suárez-Alvarez <mariano@gnome.org>
* gtk/gtkcellrenderertext.c(gtk_cell_renderer_text_class_init):
be a little more helpful with the docs on GtkCellRendererText:alignment.
Bug #403409.
svn path=/trunk/; revision=17250
Michael Natterer [Thu, 1 Feb 2007 19:47:29 +0000 (19:47 +0000)]
pass &event->area to gtk_paint_box() calls.
2007-02-01 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_paint): pass &event->area to
gtk_paint_box() calls.
svn path=/trunk/; revision=17248
Michael Natterer [Thu, 1 Feb 2007 13:57:36 +0000 (13:57 +0000)]
remove redundant and confusing if (GTK_IS_MENU (widget)) checks because
2007-02-01 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenu.c (gtk_menu_button_press)
(gtk_menu_button_release)
(gtk_menu_button_scroll): remove redundant and confusing
if (GTK_IS_MENU (widget)) checks because "widget" is always a
GtkMenu here.
svn path=/trunk/; revision=17247
Tim Janik [Thu, 1 Feb 2007 11:42:38 +0000 (11:42 +0000)]
remove extra reference that gtkcombobox keeps on priv->popup_widget if
Thu Feb 1 12:22:06 2007 Tim Janik <timj@imendio.com>
* gtk/gtkcombobox.c (gtk_combo_box_list_destroy): remove extra reference
that gtkcombobox keeps on priv->popup_widget if it's a tree view.
svn path=/trunk/; revision=17246
Christian Persch [Wed, 31 Jan 2007 18:40:32 +0000 (18:40 +0000)]
Hide the Credits button iff there are no credits to show. Bug #402806.
2007-01-31 Christian Persch <chpe@svn.gnome.org>
* gtk/gtkaboutdialog.c: (update_credits_button_visibility),
(gtk_about_dialog_set_authors), (gtk_about_dialog_set_documenters),
(gtk_about_dialog_set_artists),
(gtk_about_dialog_set_translator_credits): Hide the Credits button iff
there are no credits to show. Bug #402806.
svn path=/trunk/; revision=17242
Tor Lillqvist [Tue, 30 Jan 2007 23:49:39 +0000 (23:49 +0000)]
New debugging function. (_gdk_input_wintab_init_check): Call it when
2007-01-31 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkinput-win32.c (print_cursor): New debugging
function.
(_gdk_input_wintab_init_check): Call it when debugging output is
requested.
(_gdk_input_wintab_init_check): Skip duplicated cursors for Wacom
tablets. The Wacom driver reports duplicated cursors with
physid==0. Fix verified by Robert *gren. (Should be U+00D6
there, but svn won't let me.)
svn path=/trunk/; revision=17241
Felix Riemann [Tue, 30 Jan 2007 20:19:11 +0000 (20:19 +0000)]
Fix leaked string. Fixes bug #402565.
2007-01-30 Felix Riemann <friemann@svn.gnome.org>
* modules/printbackends/file/gtkprintbackendfile.c:
(file_printer_get_options): Fix leaked string. Fixes bug #402565.
svn path=/trunk/; revision=17238
Matthias Clasen [Tue, 30 Jan 2007 18:36:44 +0000 (18:36 +0000)]
Be more careful about toplevel possibly being NULL. (#402453, Sebastian
2007-01-30 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
(gdk_x11_window_set_user_time): Be more careful about toplevel
possibly being NULL. (#402453, Sebastian Bacher)
svn path=/trunk/; revision=17236
Tim Janik [Tue, 30 Jan 2007 11:10:22 +0000 (11:10 +0000)]
cleaned up ::color-hash registration to not abuse class_n_properties and
Tue Jan 30 12:09:56 2007 Tim Janik <timj@gtk.org>
* gtk/gtksettings.c: cleaned up ::color-hash registration to not abuse
class_n_properties and leave an uninitialized value array behind.
svn path=/trunk/; revision=17235
Michael Natterer [Mon, 29 Jan 2007 15:45:18 +0000 (15:45 +0000)]
queue a draw on the parent_menu_item of this menu item's menu, to enable
2007-01-29 Michael Natterer <mitch@imendio.com>
* gtk/gtkmenuitem.c (gtk_menu_item_select)
(gtk_menu_item_deselect): queue a draw on the parent_menu_item of
this menu item's menu, to enable themeing menu items depending on
whether something is selected in their submenu (patch taken from
maemo-gtk).
svn path=/trunk/; revision=17234
Matthias Clasen [Mon, 29 Jan 2007 03:24:09 +0000 (03:24 +0000)]
Reinstate gtk_toolbar_content_new_compatibility() that was mistakenly
2007-01-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c: Reinstate gtk_toolbar_content_new_compatibility()
that was mistakenly "cleaned up" a while ago. Also
revert a problematic change to the screen_changed
handler. (#401598, Søren Sandmann)
svn path=/trunk/; revision=17232
Matthias Clasen [Sun, 28 Jan 2007 06:32:12 +0000 (06:32 +0000)]
Fix a problem with large y thickness
svn path=/trunk/; revision=17231
Matthias Clasen [Sun, 28 Jan 2007 05:37:27 +0000 (05:37 +0000)]
Use canonical property names
svn path=/trunk/; revision=17230
Matthias Clasen [Sun, 28 Jan 2007 04:41:52 +0000 (04:41 +0000)]
Avoid some unnecessary gtk_widget_get_style() calls.
2007-01-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_draw_arrow):
(gtk_notebook_draw_focus): Avoid some unnecessary
gtk_widget_get_style() calls.
svn path=/trunk/; revision=17229
Matthias Clasen [Sun, 28 Jan 2007 03:39:46 +0000 (03:39 +0000)]
Fix a problem in the last change
svn path=/trunk/; revision=17228
Matthias Clasen [Sun, 28 Jan 2007 03:16:30 +0000 (03:16 +0000)]
Rearrange things so that setting multiple properties causes not more than
2007-01-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktoolbar.c:
* gtk/gtktoolitem.c:
* gtk/gtktoolbutton.c: Rearrange things so that setting
multiple properties causes not more than a single
reconstruction of the contents.
* gtk/gtkaction.c (connect_proxy): Set all tool button
properties in one go.
svn path=/trunk/; revision=17227
Matthias Clasen [Sat, 27 Jan 2007 05:51:19 +0000 (05:51 +0000)]
Fix GtkStatusIcon to not take up space on the panel if it is invisible.
2007-01-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkstatusicon.c:
* gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not
take up space on the panel if it is invisible. (340110, Christian
Persch)
* tests/teststatusicon.c:
* tests/Makefile.am: Updates
svn path=/trunk/; revision=17224
Matthias Clasen [Sat, 27 Jan 2007 05:34:05 +0000 (05:34 +0000)]
Add deprecation guards for gtk_rc_style_ref/unref and the old file
2007-01-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesel.h:
* gtk/gtkrc.h:
* gtk/gtk.symbols: Add deprecation guards for gtk_rc_style_ref/unref
and the old file selector. (#348256)
svn path=/trunk/; revision=17223
Matthias Clasen [Sat, 27 Jan 2007 04:36:08 +0000 (04:36 +0000)]
Documentation fixes (#400530, Anders Brander)
2007-01-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c: Documentation fixes (#400530, Anders Brander)
svn path=/trunk/; revision=17222
Matthias Clasen [Sat, 27 Jan 2007 04:27:38 +0000 (04:27 +0000)]
Check the mtime of all directories, not just the toplevel, if ftw() is
2007-01-26 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c: Check the mtime of all directories,
not just the toplevel, if ftw() is available. (#331671, Behdad
Esfahbod)
* configure.in: Check for ftw.h.
svn path=/trunk/; revision=17221
Michael Natterer [Fri, 26 Jan 2007 23:46:37 +0000 (23:46 +0000)]
Added bug number to my last commit.
svn path=/trunk/; revision=17219
Michael Natterer [Fri, 26 Jan 2007 13:31:35 +0000 (13:31 +0000)]
destroy the XIM only if it exists. While the code does look safe in
2007-01-26 Michael Natterer <mitch@imendio.com>
* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
destroy the XIM only if it exists. While the code does look safe
in general, there can be corner cases where the "reconnecting"
boolean being FALSE does not correspond to the XIM being
allocated (fix taken from maemo-gtk).
svn path=/trunk/; revision=17218
Tim Janik [Fri, 26 Jan 2007 12:26:01 +0000 (12:26 +0000)]
clamp cursor coordinates to window bounds (fix from Maemo Gtk).
Fri Jan 26 13:07:07 2007 Tim Janik <timj@imendio.com>
* gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to
window bounds (fix from Maemo Gtk).
svn path=/trunk/; revision=17217
Michael Natterer [Fri, 26 Jan 2007 11:39:16 +0000 (11:39 +0000)]
only block/unblock completion->priv->insert_text_id if it is actually
2007-01-26 Michael Natterer <mitch@imendio.com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
only block/unblock completion->priv->insert_text_id if it is
actually connected. While this can't happen the way GtkEntry
itself uses the completion, it's still public API and should not
blindly call functions that will spit warnings (fix taken from
maemo-gtk).
svn path=/trunk/; revision=17215
Matthias Clasen [Thu, 25 Jan 2007 14:24:53 +0000 (14:24 +0000)]
Reduce locking overhead by not repeatedly getting the paintable iface.
2007-01-25 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
the paintable iface.
svn path=/trunk/; revision=17213
Michael Natterer [Wed, 24 Jan 2007 16:10:40 +0000 (16:10 +0000)]
revert generic disabling of PRELIGHT state for the reasons given in bug
2007-01-24 Michael Natterer <mitch@imendio.com>
* gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
of PRELIGHT state for the reasons given in bug #135666. Widget
states are sometimes abused or otherwise used wrongly for historic
reasons, causing this part of the patch to break e.g. menu items.
svn path=/trunk/; revision=17211
Roozbeh Pournader [Wed, 24 Jan 2007 13:01:52 +0000 (13:01 +0000)]
Remove mention of no-longer-existing PATCH keyword in bugzilla. (#396899)
2007-01-24 Roozbeh Pournader <roozbeh@farsiweb.info>
* README: Remove mention of no-longer-existing PATCH
keyword in bugzilla. (#396899)
svn path=/trunk/; revision=17209
Carlos Garcia Campos [Tue, 23 Jan 2007 21:28:29 +0000 (21:28 +0000)]
Fix memory leak. Fixes bug #399907.
2007-01-23 Carlos Garcia Campos <carlosgc@gnome.org>
* gtk/gtkpagesetup.c
(gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
Fixes bug #399907.
svn path=/trunk/; revision=17206
Priit Laes [Mon, 22 Jan 2007 22:32:09 +0000 (22:32 +0000)]
Updated Estonian translation by Ivar Smolin <okul@linux.ee>.
2007-01-23 Priit Laes <plaes@svn.gnome.org>
* et.po: Updated Estonian translation by Ivar Smolin <okul@linux.ee>.
svn path=/trunk/; revision=17203
Chris Wilson [Mon, 22 Jan 2007 15:19:53 +0000 (15:19 +0000)]
Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
* gtk/gtkstyle.h:
Cause gcc to issue a warning if the style returned from
gtk_style_attach is not used. Failure to update
widget->style causes some very difficult to identify bugs,
eg Bug 353498 – crash in Terminal: changing icon theme.
svn path=/trunk/; revision=17199
Matthias Clasen [Sun, 21 Jan 2007 17:27:23 +0000 (17:27 +0000)]
Fix error reporting in the gif loader
svn path=/trunk/; revision=17197
Michael David Emmel [Sat, 20 Jan 2007 07:05:55 +0000 (07:05 +0000)]
Mouse crossing fixes from Attilio
svn path=/trunk/; revision=17195
Matthias Clasen [Fri, 19 Jan 2007 15:12:58 +0000 (15:12 +0000)]
fix build breakage
svn path=/trunk/; revision=17193
Kristian Rietveld [Fri, 19 Jan 2007 10:32:42 +0000 (10:32 +0000)]
factor out add_scroll_timeout(). (taken from maemo-gtk).
2007-01-19 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_motion_bin_window),
(add_scroll_timeout), (gtk_tree_view_drag_motion): factor out
add_scroll_timeout(). (taken from maemo-gtk).
svn path=/trunk/; revision=17192
Matthias Clasen [Fri, 19 Jan 2007 03:52:03 +0000 (03:52 +0000)]
Fix problems with the initial focus in GtkCalendar. (#397783, Vincent
2007-01-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcalendar.c: Fix problems with the initial
focus in GtkCalendar. (#397783, Vincent Untz)
svn path=/trunk/; revision=17190
Robert Oegren [Fri, 19 Jan 2007 02:38:46 +0000 (02:38 +0000)]
Fix for bug #143460 - missed tablet clicks on Windows
2007-01-19 Robert Oegren <gtk@roboros.com>
Fix for bug #143460 - missed tablet clicks on Windows
* gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check):
Request absolute reporting of tablet button state, and cut down
the packet queue size a bit.
(_gdk_input_other_event): Change button state handling
accordingly. Also drop the no longer necessary code that detects
missed clicks/releases for button 1. The switch to absolute button
state should prevent missed events for all buttons. Additionally,
swap button 2 and 3.
(_gdk_input_grab_pointer): Don't reset button_state, that will only
cause a new press event as soon as the next tablet packet arrives.
svn path=/trunk/; revision=17188
Tor Lillqvist [Fri, 19 Jan 2007 02:09:57 +0000 (02:09 +0000)]
Strip some trailing blanks
svn path=/trunk/; revision=17187
Tor Lillqvist [Fri, 19 Jan 2007 01:55:52 +0000 (01:55 +0000)]
Build Wintab support always on Windows. Don't require the Wintab SDK.
2007-01-19 Tor Lillqvist <tml@novell.com>
Build Wintab support always on Windows. Don't require the Wintab
SDK.
* configure.in: Drop the --with-wintab option. Drop the
HAVE_WINTAB feature test macro and Automake variable.
* acconfig.h
* config.h.win32.in: Drop HAVE_WINTAB.
* gdk/win32/gdkevents-win32.c
* gdk/win32/gdkinput.c
* gdk/win32/gdkinput-win32.h
* gdk/win32/gdkinput-win32.c
* gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
unconditional.
* gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
to load wintab32.dll dynamically here. If it is found look up the
handful Wintab functions we use.
(rest of file): Use these function pointers instead of calling the
functions from wntab32x.lib. The code in wntab32x.lib did the same
thing anyway: tried to load wintab32.dll, and looked up the
addresses of the actual functions from it.
* gdk/Makefile.am
* gdk/win32/Makefile.am: Drop the libwntab32x hacks.
* gdk/win32/wintab.h
* gdk/win32/pktdef.h: New files. Copied from the Wintab
SDK. Copyright blurb says: "The text and information contained in
this file may be freely used, copied, or distributed without
compensation or licensing restrictions."
* README.win32: Update a bit. Remove the text about the Wintab
SDK.
svn path=/trunk/; revision=17186
Tor Lillqvist [Fri, 19 Jan 2007 00:06:01 +0000 (00:06 +0000)]
gdk-pixbuf/Makefile.am gdk/Makefile.am gdk/win32/Makefile.am Fixes for
2007-01-18 Tor Lillqvist <tml@novell.com>
* gdk-pixbuf/Makefile.am
* gdk/Makefile.am
* gdk/win32/Makefile.am
* gtk/Makefile.am: Fixes for building outside srcdir on
Win32. (#336819, #340113) Drop distributing the handmade .la
libtool wrapper for the wntab32x library. It's too much trouble
making it work when building outside srcdir. Just link to the
library direcly using -Wl,win32/libwntab32x.a.
svn path=/trunk/; revision=17185